package org.springframework.samples.countries.web.translate;

import pikes.ecma.IMemberExpression;
import pikes.ecma.Identifier;
import pikes.ecma.MemberPropertyAccess;

public class MemberField implements Reference {

	private CharSequence fieldName = null;

	public MemberField(CharSequence fieldName) {
		super();
		this.fieldName = fieldName;
	}

	public IMemberExpression createFunctionOwner(CharSequence functionName) {
		return new MemberPropertyAccess(new Identifier(fieldName), functionName);
	}
}